package com.mrjy.maintain.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mrjy.common.entity.PromoteSettleInfo;
import com.mrjy.common.entity.UserBalancePayment;
import com.mrjy.maintain.bo.IPromoteSettleInfoBo;


@Controller
@RequestMapping("/maintain/promoteSettleInfo")
public class PromoteSettleInfoController {
	
	@Autowired
	private IPromoteSettleInfoBo promoteSettleInfoBo;
	
	/**
	 * 根据推广明细id查询
	 * @param info
	 * @return
	 */
	@RequestMapping("/queryByPromoteId")
	@ResponseBody
	public Object queryByPromoteId(PromoteSettleInfo info){
		return promoteSettleInfoBo.queryByPromoteId(info);
	}
	
	/**
	 * 根据订单id查询
	 * @param userBalancePayment
	 * @return
	 */
	@RequestMapping("/queryByPaymentId")
	@ResponseBody
	public Object queryByPaymentId(UserBalancePayment userBalancePayment) {
		return promoteSettleInfoBo.queryByPaymentId(userBalancePayment);
	}
	
}
